package cc.ilzy.mall.coupon.service;

import cc.ilzy.mall.model.pojo.CouponRecord;
import cc.ilzy.mall.model.vo.CouponRecordVO;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ilzy
 * @since 2025-07-06
 */
public interface ICouponRecordService extends IService<CouponRecord> {

    /**
     * 添加领取优惠券记录
     * @param couponId
     * @param category
     */
    void addCouponRecord(Long couponId, String category);

    /**
     * 查询优惠劵记录详情
     * @param couponId
     * @return
     */
    CouponRecordVO queryCouponRecordByCouponId(Long couponId);

    /**
     * 给新用户添加优惠券记录
     * @param userId
     * @param username
     */
    void addNewCouponRecord(Long userId, String username);
}
